import uiautomation as auto

class WeixinMsgUtil(object):
  def readText(this):
    window = auto.WindowControl(ClassName="WeChatMainWndForPC", searchDepth=1,Name="微信")
    print(window)
    bar = window.Control(Name="导航")
    #.GetChildren()
    btn = bar.ButtonControl(foundIndex=1)
    print(btn.Name)